//
//  CEReversibleTranstion.h
//  atlas
//
//  Created by 你好 on 16/12/30.
//  Copyright © 2016年 xyxNav. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CEReversibleTranstion : NSObject<UIViewControllerAnimatedTransitioning,UINavigationControllerDelegate>


/**
 The direction of the animation.
 */
@property (nonatomic, assign) BOOL reverse;

/**
 The animation duration.
 */
@property (nonatomic, assign) NSTimeInterval duration;


@property (nonatomic, assign) UINavigationControllerOperation operation;

@property (nonatomic, assign) CGFloat transitionDuration;

@property(nonatomic,assign) UINavigationController *parent;

@property(nonatomic,assign,getter = isInteractive) BOOL interactive;

- (instancetype)initWithNavigationController:(UINavigationController *)nc;


- (void)animateTransition:(id<UIViewControllerContextTransitioning>)transitionContext fromVC:(UIViewController *)fromVC toVC:(UIViewController *)toVC fromView:(UIView *)fromView toView:(UIView *)toView;


@end
